Depicter\Database\Repository\DocumentRepository C

Total Complexity 103
Dependencies 8
Dependents 3
Total lines 763
Lines of code 352
Logical lines of code 187
Comment lines 293
Methods 38
Properties 1

Methods 38

Method Rating Maintainability Complexity Lines of code
getList()
A
46 11 36
duplicate()
A
49 9 30
saveEditorData()
A
48 8 33
revert()
A
51 8 24
findOne()
S
58 5 15
makeSlug()
S
59 5 15
geContent()
S
60 5 13
update()
S
63 4 10
find()
S
67 3 7
isPublishedBefore()
S
65 3 10
getLastPublishedAt()
S
67 3 7
changeSlug()
S
65 3 9
checkSlug()
S
63 2 11
getCurrentUserId()
S
79 2 3
isPublished()
S
69 2 7
rename()
S
71 2 6
delete()
S
71 2 6
getStatus()
S
69 2 7
getPreviewImageUrl()
S
70 2 6
select()
S
70 2 5
checkRevisionsLimit()
S
69 2 6
addRevision()
S
65 2 9
defaultFields()
S
60 1 14
getPreviewImagePath()
S
79 1 3
savePreviewImage()
S
72 1 6
__construct()
S
80 1 3
getLastDocument()
S
79 1 3
getRecentRevision()
S
73 1 4
getMergedFields()
S
79 1 3
draftFields()
S
69 1 7
document()
S
81 1 3
findOrCreate()
S
75 1 4
findById()
S
80 1 3
create()
S
63 1 10
save()
S
76 1 4
all()
S
81 1 3
getParsedEditorContent()
S
75 1 4
getPreviewRelativeImagePath()
S
80 1 3